package org.itstack.demo.design.event.listen;

import org.itstack.demo.design.LotteryResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 短消息事件
 */
public class MessageEvenListener implements EventListener {

    private Logger logger = LoggerFactory.getLogger(MessageEvenListener.class);

    @Override
    public void doEvent(LotteryResult result) {
        logger.info("给用户{}发送短信通知（短信）：{}", result.getuId(), result.getMsg());
    }
}
